home *** CD-ROM | disk | FTP | other *** search
- <%
- '+-------------------------------------------------------------------------
- '
- ' Microsoft Windows Media
- ' Copyright (C) Microsoft Corporation. All rights reserved.
- '
- ' File: WMSConstants.asp
- '
- ' Contents: Constants straight from the server OM and those used throughout the admin
- '
- '--------------------------------------------------------------------------
-
- Const SERVERLISTFILENAME = "WMSAdmin.XML"
- Const MIN_MSIE_VERSION = 5.5
- Const MIN_NSCP_VERSION = 5
- Const MIN_OPERA_VERSION = 3.6
-
- Const brUnknown = 0
- Const brMSIE = 1
- Const brNetscape = 2
- Const brOpera = 3
-
-
- '
- ' Used by WMSSession (hidden heartbeat frame)
- ' -------------
-
- ' Number of seconds between requests made to the server.
- ' Increase this value for slower connections.
- Const HEARTBEAT_INTERVAL = 20
- ' Number of elapsed heartbeats between diagnostic connections to the server.
- ' Decrease this value for slower connections and increase the heartbeat interval.
- Const HEARTBEATS_BETWEEN_OM_PING = 5
-
-
- '
- ' Global Color Definitions
- ' -------------
- Const stdBlue = "#6699FF"
- Const colorTabBackground = "#6699FF"
-
- Const colorTabLight = "white"
- Const colorDialogLight = "white"
- Const colorLight = "white"
-
- Const colorTabDark = "darkgray"
- Const colorDialogDark = "#c0c0b0"
- Const colorDark = "#c0c0b0"
-
- Const STDTABLEWIDTH = 550
-
- ' simple bounds checking
- Const MAX_LEN_SERVERNAME = 250
- Const MAX_LEN_PPNAME = 250
- Const MAX_LEN_PPID = 128
- Const MAX_LEN_PLUGINNAME = 250
- Const MAX_LEN_REALM = 250
- Const MAX_LEN_OP = 12
- Const MAX_LEN_LIMIT = 9
- Const MAX_PATH = 250
- Const MAX_PASSWD = 250
- Const MAX_USERNAME = 250
-
- '
- ' Used on properties tabs
- ' -------------'
- Const DESCRIPTIONDLGHEIGHT = "350px"
- Const DESCRIPTIONDLGWIDTH = "520px"
-
- '
- ' Used on properties tabs
- ' -------------'
- Const MAX_LIMIT_VAL = 999999999
- Const DEFAULT_CONNECT_RATE = "50"
- Const DEFAULT_PLAYERTIMEOUT_INSEC = "3600"
- Const DEFAULT_SERVER_CONNECTACK_INSEC = "60"
- Const DEFAULT_DELIVERY_RATE = "5"
- Const DEFAULT_RAPIDSTART_RATE = "3500"
-
- '
- ' Dialog constants
- ' -------------'
- Const OP_RENAME_PP = 3
- Const OP_DUPLICATE_PP = 4
- Const OP_REMOVE_PP = 5
- Const OP_RENAME_PLUGIN = 6
- Const OP_DUPLICATE_PLUGIN = 7
- Const OP_REMOVE_PLUGIN = 8
- Const OP_REMOVE_PLUGINERR = 9
- Const OP_REMOVE_PLUGINERRDIS = 10
- Const OP_DISABLECRITSYSPLUGIN = 11
- Const OP_RENAME_STARTED_PUBPOINT = 12
- Const OP_REMOVE_SERVER = 86
-
- Const ID_YES = 0
- Const ID_NO = 1
- Const ID_CANCEL = 2
-
- '
- ' Plug-in category constants used in WMS object model
- ' -------------'
- Const AUTHORIZE_SUBCAT = "Authorize"
- Const LOGGING_SUBCAT = "Logging"
- Const ARCHIVER_SUBCAT = "Archive"
- Const PLAYLISTXFORM_SUBCAT = "Playlist transform"
- Const MULTICAST_SUBCAT = "Multicast"
-
- '
- ' Server OM constants
- '--------------------
-
- 'enum WMS_SERVER_STATUS
- Const WMS_SERVER_RUNNING = 0
- Const WMS_SERVER_ERROR = 1
- Const WMS_SERVER_ERROR_CRITICAL = 2
-
- 'enum WMS_OS_PRODUCT_TYPE
- Const WMS_OS_PRODUCT_SERVER = 1
- Const WMS_OS_PRODUCT_ADVANCED = 2
-
- 'enum WMS_DIAGNOSTIC_EVENT
- Const WMS_DIAGNOSTIC_EVENT_LIMIT_HIT = 0
- Const WMS_DIAGNOSTIC_EVENT_PLUGIN_EVENT_LOG_ERROR = 1
- Const WMS_DIAGNOSTIC_EVENT_PLUGIN_EVENT_LOG_WARNING = 2
- Const WMS_DIAGNOSTIC_EVENT_SERVER_EVENT_LOG_ERROR = 3
- Const WMS_DIAGNOSTIC_EVENT_SERVER_EVENT_LOG_WARNING = 4
-
- 'enum WMS_PLUGIN_STATUS
- Const WMS_PLUGIN_NONE = 0
- Const WMS_PLUGIN_ERROR = 1
- Const WMS_PLUGIN_LOADED = 2
- Const WMS_PLUGIN_ENABLED = 4
- Const WMS_PLUGIN_LOADED_IN_PROC = 8
- Const WMS_PLUGIN_LOADED_OUT_OF_PROC = 16
- Const WMS_PLUGIN_REMOVE_ON_SERVICE_RESTART = 32
-
- 'enum WMS_PLUGIN_SUPPORT_TYPE
- Const WMS_PLUGIN_SUPPORT_IS_SUPPORTED = 0
- Const WMS_PLUGIN_SUPPORT_REQUIRES_ADVANCED_SERVER = 1
-
- 'enum WMS_PUBLISHING_POINT_TYPE
- Const WMS_PUBLISHING_POINT_TYPE_ON_DEMAND = 1
- Const WMS_PUBLISHING_POINT_TYPE_BROADCAST = 2
- Const WMS_PUBLISHING_POINT_TYPE_CACHE_PROXY_ON_DEMAND = 3
- Const WMS_PUBLISHING_POINT_TYPE_CACHE_PROXY_BROADCAST = 4
-
- 'enum WMS_PUBLISHING_POINT_STATUS
- Const WMS_PUBLISHING_POINT_RUNNING = 0
- Const WMS_PUBLISHING_POINT_ERROR = 1
- Const WMS_PUBLISHING_POINT_ERROR_CRITICAL = 2
-
- 'enum WMS_BROADCAST_PUBLISHING_POINT_STATUS
- Const WMS_BROADCAST_PUBLISHING_POINT_STARTED_WITHOUT_DATA = 1
- Const WMS_BROADCAST_PUBLISHING_POINT_STARTED = 2
- Const WMS_BROADCAST_PUBLISHING_POINT_ARCHIVING = 4
- Const WMS_BROADCAST_PUBLISHING_POINT_CHANGE_IN_PROGRESS = 8
-
- 'enum WMS_ASP_SERVER_STATUS
- Const WMS_SERVER_UNKNOWN = 0
- Const WMS_HOST_UNAVAILABLE = 1
- Const WMS_SERVICE_UNAVAILABLE = 2
- Const WMS_SERVICE_STOPPED = 3
- Const WMS_SERVICE_STARTED = 4
- Const WMS_SERVICE_INERROR = 5
- Const WMS_SERVICE_FAILEDTOSTART = 6
- Const WMS_SERVICE_STARTING = 7
-
- 'enum WMS_ASP_COMPUTER_NAME_FORMAT
- Const WMS_ComputerNameNetBIOS = 0
- Const WMS_ComputerNameDnsHostname = 1
- Const WMS_ComputerNameDnsDomain = 2
- Const WMS_ComputerNameDnsFullyQualified = 3
- Const WMS_ComputerNamePhysicalNetBIOS = 4
- Const WMS_ComputerNamePhysicalDnsHostname = 5
- Const WMS_ComputerNamePhysicalDnsDomain = 6
- Const WMS_ComputerNamePhysicalDnsFullyQualified = 7
-
- 'enum WMS_FILE_TYPE
- Const WMS_FILE_UNSPECIFIED = 0
- Const WMS_FILE_DIRECTORY = 1
- Const WMS_FILE_MEDIA = 2
- Const WMS_FILE_PLAYLIST = 3
- Const WMS_FILE_STREAM_FORMAT = 4
- Const WMS_FILE_REMOTE_FILE = 5
-
- Const NOT_FOUND = -1
-
- 'file I/O constants
- Const CONST_ForAppending = 8
- Const CONST_ForReading = 1
- Const CONST_ForWriting = 2
- Const CONST_OpenAsUnicode = -1
-
- 'plug-in category identifiers
- Const CAT_GEN = "gen"
- Const CAT_AUTHORIZE = "authorize"
- Const CAT_LOGGING = "log"
- Const CAT_EVENT = "event"
- Const CAT_AUTHEN = "authen"
- Const CAT_LIM = "limit"
- Const CAT_PLAYXFORM = "plxform"
- Const CAT_CACHEPROXYMGMT = "cpmgmt"
- Const CAT_ARCH = "arch"
- Const CAT_MCAST = "mcast"
- Const CAT_NET = "net"
- Const CAT_CRED = "cred"
- Const CAT_WIRELESS = "fec"
- Const CAT_CPROT = "cprot"
- Const CAT_MPARS = "mpars"
- Const CAT_PLPARS = "plpars"
- Const CAT_DSRC = "dsrc"
- Const CAT_CACHE = "cache"
- Const CAT_UCAST = "ucast"
-
- Const REGEXP_DANGEROUS_CHARS = "<|>|%|;|\f|\n|\r|\x22|\x201C|\x201D|\x201E"
- Const REGEXP_DANGEROUS_PPID_CHARS = "<|>|;|\f|\n|\r|\x22|\x201C|\x201D|\x201E"
- Const REGEXP_ILLEGAL_PLUGINNAME_CHARS = "\\|%|\&|<|>|\f|\n|\r|\x22|\x201C|\x201D|\x201E"
- Const REGEXP_ILLEGAL_PATH_CHARS = "<|>|%|;|\f|\n|\r|\x22|\x201C|\x201D|\x201E"
- Const REGEXP_ILLEGAL_TEMPL_CHARS = "|;|\f|\n|\r|`|\x22|\x201C|\x201D|\x201E"
- Const REGEXP_ILLEGAL_PPSRC_CHARS = "<|>|\*|%|;|\f|\n|\r|\x22|\x201C|\x201D|\x201E"
- Const REGEXP_ILLEGAL_PPSRC_CHARS_EX = "<|>|\*|%|;|&|\f|\n|\r|\x22|\x201C|\x201D|\x201E"
- Const REGEXT_ILLEGAL_UNAME_CHARS = "<|>|%|;|&|`|!|@|#|$|^|(|)|\|[|]|{|}|:|\?|\f|\n|\r|\x22|\x201C|\x201D|\x201E"
- Const REGEXP_DANGEROUS_ROLE_CHARS = "<|>|;|\f|\n|\r|\x22|\x201C|\x201D|\x201E"
-
- Const g_bShowJSErrorDialogs = TRUE
- Const g_bDebugMode = TRUE
- %>